﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ClassInfo.aspx.cs" Inherits="Test.UI.ClassInfo" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <a href="AddInfo.aspx">添加</a>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowDeleting="GridView1_RowDeleting" DataKeyNames="Id" >
                <Columns>
                    <asp:BoundField DataField="Id" HeaderText="编号"></asp:BoundField>
                    <asp:BoundField DataField="Name" HeaderText="班级"></asp:BoundField>
                    <asp:BoundField DataField="Comment" HeaderText="备注"></asp:BoundField>
                    <asp:HyperLinkField DataNavigateUrlFields="id" Text="详情" DataNavigateUrlFormatString="Info.aspx?id={0}"></asp:HyperLinkField>
                    <asp:HyperLinkField DataNavigateUrlFields="id" Text="修改" DataNavigateUrlFormatString="Update.aspx?id={0}"></asp:HyperLinkField>
                    <asp:CommandField ShowDeleteButton="True" />
                </Columns>
            </asp:GridView>
        </div>

    </form>
</body>
</html>
